﻿using UnityEngine;
using System.Collections;

public class ScreenAO : MonoBehaviour {

    public Material aoMat;
    public RenderTexture normalDepth;
    private void OnRenderImage(RenderTexture source, RenderTexture destination)
    {
        aoMat.SetTexture("_MainTex", source);
        aoMat.SetTexture("_normalDepth", normalDepth);
        Graphics.Blit(source, destination, aoMat);
    }
}
